|
|
|
|
- Handling legends
- Initializing fonts
<Chart>.LegendFont (Function) In french: <Graphe>.PoliceLégende Modifies the font used for the chart legend. Example of legend in a chart: // Modify the font used for the legend of CHART_MyChart. // The identifier of font used is 7. CHART_MyChart.LegendFont(7)
Syntax
Defining the font used for the chart legend Hide the details
<Chart control>.LegendFont(<Font used>)
<Chart control>: Control name Name of the Chart control to use in the window, page or report editor.
<Font used>: Font Font to use. This parameter corresponds to a variable of type Font. The font characteristics have been defined with FontCreate or via the font properties.
Defining the font used for the chart legend (syntax kept for backward compatibility) Hide the details
<Chart control>.LegendFont(<Font identifier>)
<Chart control>: Control name Name of the Chart control to use in the window, page or report editor.
<Font identifier>: Integer Font identifier, defined by grCreateFont. A WLanguage error occurs if this font does not exist. Remarks Handling legends The set of series labels correspond to the chart legend.
The series labels are defined by <Chart>.SeriesLabel. The legend font can be modified by <Chart>.LegendFont. <Chart>.Legend indicates the presence and position of the legend (i. e. all series labels). Initializing fonts The default font used for the chart legends has the following characteristics: - Font name: Arial,
- Size: 14,
- Style: Normal,
- Color: Black.
The data defined by <Chart>.LegendFont will be taken into account during the next call to <Chart>.Draw.
Related Examples:
|
Unit examples (WEBDEV): The Chart functions
[ + ] This example presents the main features of the chart designer of WEBDEV and it allows you to: - Create a chart: Pie, Column or Line - Define the display area of a chart - Define the options of the chart (legend, percentage, ...)
|
|
Unit examples (WINDEV Mobile): The Chart functions
[ + ] Using the Chart functions: - create a Pie, Column or Line chart by programming - define the chart options (legend, percentage, ...)
|
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|